﻿using UnityEngine;
using System.Collections;


public class UICoroutine : MonoBehaviour
{
    public Coroutine Begin(IEnumerator routine) { return StartCoroutine(routine); }

    public Coroutine StarSingle(IEnumerator routine)
    {
        Stop();
        return StartCoroutine(routine);
    }

    public void Stop() { StopAllCoroutines(); }
}
